# user子应用视图路由
from django.conf import settings
from django.conf.urls.static import static


from django.urls import path
from hopublog.views import *# 导入注册视图
urlpatterns = [
    # 参数1：路由
    # 参数2：视图函数
    # 参数3：路由名，方便通过reverse来获取路由
    path('register/', RegisterView.as_view(), name='register'),
    path('imagecode/', ImageView.as_view(), name='imagecode'),
    path('smscode/',SmsCodeView.as_view(),name = 'smcode'),
    path('login/', LoginView.as_view(), name='login'),
    path('logout/',LogoutView.as_view(),name='logout'),
    path('forgetpassword/', ForgetPasswordView.as_view(), name='forgetpassword'),
    path('usercenter/', UserCenterView.as_view(), name='usercenter'),
    path('writeblog/',WriteBlogView.as_view(),name = 'writeblog'),

]